package sctu.edu.java.year2016.team06.luoxin.day20160521.chapter4_2;

/**编写Java程序，应用for循环打印菱形。
 * Created by Administrator on 2016/5/21.
 */
public class ni {
    public static void main(String[] args) {
    for( int i=1;i<6;i++){
       if(i==1||i==5)
        System.out.println(" "+" "+"*"+" "+" ");
        if(i==2||i==4)
            System.out.println(" "+"*"+"*"+"*"+" ");
        if(i==3)
            System.out.println("*"+"*"+"*"+"*"+"*");
    }
    }
}